package lib.wzh.com.libcore.framework.request;

import java.io.Serializable;

/**
 * @Author lib
 * @Date 2021/11/23 18:09
 * @ClassName PageQueryVo
 * @Version v1.0
 */

public class PageQueryVo implements Serializable {

    /**
     * 每页大小
     */
    private Integer pageSize;

    /**
     * 当前页
     */
    private Integer pageNum;

    /**
     * 排序
     */
    private String sort;

    /**
     * 排序方式 asc升序
     */
    private String sortBy = "asc";

    public PageQueryVo() {
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    @Override
    public String toString() {
        return "{\"PageQueryVo\":{"
                + "\"pageSize\":"
                + pageSize
                + ",\"pageNum\":"
                + pageNum
                + ",\"sort\":\""
                + sort + '\"'
                + ",\"sortBy\":\""
                + sortBy + '\"'
                + "}}";

    }
}
